#ifndef LOADING_H
#define LOADING_H

#include <QWidget>

class loading : public QWidget
{
    Q_OBJECT
public:
    // explicit 关键字通常用于声明构造函数，以防止隐式类型转换
    explicit loading(QWidget *parent = nullptr);

protected:
    void paintEvent(QPaintEvent *event);

private:
    QPixmap m_bk;
    QPixmap m_progress;
    int m_dist = 15;
};

#endif // LOADING_H
